/**
 * Created by Ysssssss on 2021/5/5.
 */

import React, { PureComponent } from 'react'
import PropTypes from 'prop-types';

class CouponModule extends PureComponent {
    render () {
        return (
            <div className="operation-container ft-clr-d">
                <div className="ft-16 pdb-16 bdb-l">优惠券</div>
                <div className="ft-14 mgt-24">若店铺已配置了优惠券，则会显示在此处</div>
            </div>
        )
    }
}

export default CouponModule

export class CouponPreview extends PureComponent{
    static propTypes = {
        onClick: PropTypes.func,
        className: PropTypes.string,
    }
    render () {
        const { onClick, className } = this.props
        return (
            <div className={`coupon-preview bd-l cur-poi ${className}`}
                 onClick={onClick}
            >
                <img className="w-100" src={require("@assets/image/design-coupon-center.png")} alt=""/>
            </div>
        )
    }
}